/**
 * 
 */
package com.iwords.service.persistence;

import java.util.List;

import javax.ejb.Local;

import com.iwords.service.object.SysLibEntity;

/**
 * @author       BOLIN.HBC 
 * @time         2011-3-12    
 * @description  SysLib-Persistence       
 */
@Local
public interface SysLibPersistence {

	void create(SysLibEntity user);

	void edit(SysLibEntity user);

	void remove(SysLibEntity user);

	SysLibEntity find(Long id);

	public List<SysLibEntity> findSysLibs();

	List<SysLibEntity> findAll();
	public List<SysLibEntity> findRootSysLibs() ;
	int count();
	
	
	/**
	 * 获取课本子节点
	 * 
	 * @param 	libid
	 * 			课本ID
	 * @return 	List<SysLibEntity>
	 * 			课本集合
	 */
	public List<SysLibEntity> getChildrenList(Long libid);
	
	 /**
	  * 根据课本名称获取课本
	  * 
	 * @param 	libName
	 *          课本名称
	 * @return	SysLibEntity
	 *          课本信息
	 */
	public SysLibEntity getLibByLibName(String libName);
	
	
}
